#ifndef C14_T1_WINE_PRIVATEINHERIT_H_
#define C14_T1_WINE_PRIVATEINHERIT_H_

#include<iostream>
#include<string>
#include<valarray>


using std::string;
using std::valarray;
using std::pair;
class Wine : private string, private valarray<int>, private pair<valarray<int>, valarray<int>>
{
private:
	//string _wineLabel;
	typedef valarray<int> arrayInt;
	typedef pair<arrayInt, arrayInt> pairInt;
	int _year;
	//pairInt _wineInformation;
public:
	Wine() :string("None"), _year(0), pairInt(arrayInt(), arrayInt()) {}
	Wine(const char *l, int y, const int yr[], const int bot[]);
	//Wine(const char *l, const arrayInt & yr, const arrayInt & bot);
	//Wine(const char *l, const pairInt & yr_bot);
	Wine(const char *l, int y);
	~Wine(){}
	void GetBottles();
	void Show() const;
	const string & Label(){ return (const string &)*this; }
	int sum() const;

};

#endif